package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkFieldVal;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 工单字段值表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-10-12
 */
@Repository
public interface ZjWorkFieldValMapper extends BaseMapper<ZjWorkFieldVal> {

    /**
     * 根据工单ID删除工单自定义字段
     * @param workId 工单ID
     */
    void deleteByWorkId(@Param("workId") Long workId);

    /**
     * 根据工单ID获取工单自定义字段导出数据
     * @param workIds 工单ID
     * @return
     */
    List<ZjWorkFieldVal> getOrderCustomFieldExportDataByWorkIds(@Param("workIds") List<Long> workIds);

}
